<template>
    <div>
        <h3>当前用户信息:{{userStore.userInfo.dname}}</h3>
    </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue';
import axios from 'axios';
import moment from 'moment';
import { useRouter } from 'vue-router';
import { useUserInfoStore } from '@/stores/user';
import router from '@/router';
const userStore = useUserInfoStore();
onMounted(()=>{
    if(userStore.userInfo.did)
    {
        
    }
    else{
        router.push('/demo1')
    }
})
</script>

<style scoped>

</style>